package com.android.publicModule.network;

public interface DownloadProgress {
	
	/**
	 * 下载准备
	 * @param id
	 * @param url
	 * @param downloadInfo
	 */
	public void downloadReady(String id,String url,Object downloadInfo);
	
	/**
	 * 下载开始
	 * @param id
	 * @param url
	 * @param downloaded
	 * @param total
	 * @param downloadInfo
	 */
	public void downloadStart(String id,String url,String savePath,boolean downloadPhone,long downloaded,long total,Object downloadInfo);
	
	/**
	 * 下载中
	 * @param id
	 * @param url
	 * @param downloaded
	 * @param total
	 * @param downloadInfo
	 */
	public void downloading(String id,String url,String savePath,boolean downloadPhone,long downloaded,long total,Object downloadInfo);
	
	/**
	 * 下载成功
	 * @param url
	 * @param savePath
	 * @param total
	 * @param downloadInfo
	 */
	public void downloadSucess(String id,String url,String savePath,boolean downloadPhone,long total,int type,String reason,Object downloadInfo);
	
	/**
	 * 下载失败
	 * @param url
	 * @param savePath
	 * @param type
	 * @param reason
	 * @param downloadInfo
	 */
	public void downloadFail(String id,String url,String savePath,boolean downloadPhone,int type,String reason,Object downloadInfo);

}
